﻿using GN.Pay.TradeChannel.Gyb.Request;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.TradeChannel.Gyb
{
    /// <summary>
    /// 贵阳银行Web支付服务
    /// </summary>
    [Serializable]
    public class GybWebPayService : GybServiceBase
    {
        /// <summary>
        /// 
        /// </summary>
        public override string ChannelId
        {
            get
            {
                return "Gyb.WebPay";
            }
        }

        public override ChannelType ChannelType
        {
            get
            {
                return ChannelType.Web;
            }
        }

        /// <summary>
        /// 
        /// </summary>
        public override string ChannelName
        {
            get
            {
                return "贵阳银行Web支付";
            }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="order"></param>
        /// <returns></returns>
        public override ITradePayApplyResult PayApply(IOrderPayApply order)
        {
            var config = this.channelConfigure;
            var request = new WebPayRequest(this, order, config);
            return request.Build();
        }
    }
}
